//刘晶晶页面的所有请求
import server from '../untial/api'

//页面渲染请求
export function getInitLjjApi(params){
    return  server({
            url:'/liujingjing',
            method:'get',
            params
        })
}
//get一般和params搭配   post 和 data搭配 
//单个删除请求
export function deleteTableApi(data){
    return server({
        url:'/deleteById',
        method:'post',
        data
    })
}

//批量删除请求
export function deleteManyByIdApi(data){
    return server({
        url:'/deleteManyById',
        method:'post',
        data
    })
}

//新增请求
export function AddMessageApi(data){
    return server({
        url:'/AddMessage',
        method:'post',
        data
    })
}

//编辑请求
export function editorHandleApi(data){
    return server({
        url:'/editorHandle',
        method:'post',
        data
    })
}
//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
//视图页面渲染
export function getLjDataApi(params){
    return server({
        url:'/liujj',
        method:'get',
        params
    })
}

//视图页面删除
export function DeleteStByIdApi(data){
    return server({
        url:'/liujjDelete',
        method:'post',
        data
    })
}

export function getInitNumApi(params){
    return  server({
            url:'/number',
            method:'get',
            params
        })
}



























//>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
export function gethomeallapi(params){
    return server({
        url:'/home',
        method:'get',
        params   //get一般和params搭配
    })
}


//删除单个数据
export function deleteoneapi(data){
    console.log('我是axious');
    return server({
        url:'/deleteone',
        method:'post', //post 和 data搭配
        data:data
    })
}

//删除多条数据
export function deletemoreapi(data){
    return server({
        url:'/deletemore',
        method:'post', //post 和 data搭配
        data:data
    })
}


//添加一条数据
export function addoneapi(data){
    return server({
        url:'/addone',
        method:'post', //post 和 data搭配
        data:data
    })
}

export function editoneapi(data){
    return server({
        url:'/editone',
        method:'post', //post 和 data搭配
        data:data
    })
}